In the project, the approximate value of asin (x) needs to be quickly solved. It was originally thought that using the Taylor expansion would be faster, and the result would be twice slower than the native one.
Math. AsinTime elapsed: 9 msGen 0:
This article mainly introduces the use of Math. asin () in JavaScript, which is the basic knowledge in JS beginners. If you need it, you can refer to this method to return the arc sine of radians. The ASIN method returns a value between-1 to 1, x-pi/
Introduction to Math. asin () in JavaScript
This method returns the arc sine of The radian number. The ASIN method returns a value between-1 to 1, x-pi/2, and PI/2 radian. If the number value exceeds this range, NaN is returned.
Syntax
The Math object is different from the above object. It can be said to be a common mathematics class, which has many mathematical methods used for various mathematical operations, but Math objects do not need to be constructed, you can directly use
The ASIN () method returns the sine of the X, expressed in radians.
Grammar
The following is the ASIN () method syntax:
ASIN (x)
Note: This function is not directly accessible, so we need to import the math module and then call this
Returns the inverse hyperbolic sine of a number by the Asinh () function. The ASIN () function returns the inverse of a different value, and the result is a radian value between-PI/2 and PI/2. The Acosh () function returns the inverse hyperbolic
Introduction to Math. asin () in JavaScript, arcsin Function
This method returns the arc sine of The radian number. The ASIN method returns a value between-1 to 1, x-pi/2, and PI/2 radian. If the number value exceeds this range, NaN is
DescribeASIN () returns the arc value of the sine of X.GrammarThe following is the syntax for the ASIN () method:Import Mathmath.asin (x)Note:ASIN () is not directly accessible, you need to import the math module, and then call the method through
In flash, the math class is a very common class. Through mathematical computation, we can achieve a lot of wonderful results. Here we will start from the most basic learning and add a math knowledge.
Let's take a look at the math class provided in
This article mainly introduces the study notes of the Random and Math modules in Python. This article describes the mathematical constants, common simple functions, and trigonometric functions of the math module, describes the common functions,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.